

var mysqlConn = require("./BaseDao");

exports.getMainOrd = function (callbk) {
    mysqlConn.getConn(function (err,connection) {
        connection.query("select * from product where product_type_id = ?",[typeId],function (err,rows) {
            connection.release();
            console.log(err);
            callbk(err,rows);
        })
    });
}